<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="x-dns-prefetch-control" content="off" />
		<title>Login</title>
		<script src="js/jquery/jquery-1.6.1.min.js"></script>
		<script type="text/javascript" src="js/formjson.js"></script>
<script type="text/javascript" src="js/jquery/json2.js"></script>
		<link rel="stylesheet" type="text/css" href="css/tumblr/tumblr.css" />
		<style type="text/css">
		html,body{ 
margin:0px; 
height:100%; 
} 

<%--#login_form_container{ widht:150px;}--%>



  </style>
		<script type="text/javascript">
  $(document).ready(function(){ 
	$(window).resize(function(){ 
		$('#login_form_container').width(553);
		$('#login_form_container').css({ 
			position:'absolute', 
			left: ($(window).width() - $('#login_form_container').outerWidth())/2, 
			top:  ($(window).height() - $('#login_form_container').outerHeight())/2 
		}); 
	}); 	
	$(window).resize(); 
});

function login() {
<%--			var loginInfo = $('#login_form').serializeObject();--%>
<%--			var jsonLoginInfo = JSON.stringify(loginInfo);--%>
<%--			jQuery.ajax( {--%>
<%--				type : 'POST',--%>
<%--				contentType : 'application/json',--%>
<%--				url : 'userInfo/login.do',--%>
<%--				data : jsonLoginInfo,--%>
<%--				dataType : 'json',--%>
<%--				success : function(resp) {--%>
<%--					if (resp.successed) {--%>
<%--						alert(1)--%>
<%--					}--%>
<%--				},--%>
<%--				error : ajaxFailed--%>
<%--			});--%>
<%--			return false;--%>
		}
		
		function ajaxFailed(XMLHttpRequest, textStatus, errorThrown) {
			alert("出错了！");
			//alert(XMLHttpRequest.responseText);
		};
  </script>
	</head>
	<body class=" login small_layout no_js    webkit">
		<div id="login_form_container">
			<div id="header">
				<h1>
					<img class="logo" src="images/test.png?alpha" alt="任务管理系统" />
				</h1>
			</div>
			<form  id="login_form" action="user/login.do" method="POST">
				<div class="input_wrapper" sytle="margin: 0 0 0 0px;">
					<label for="login_account">
						Account
					</label>
					<input type="text" name="account" id="account" value="" />
				</div>
				<div class="input_wrapper">
					<label for="login_password">
						Password
					</label>
					<input type="password" id="password" name="password" />
				</div>
				<button type="submit">
					<span>登录</span>
				</button>
				<br class="clear" />
				<p class="forgot_password">
					<a href="forgot_password.do">忘记密码</a>
				</p>
			</form>
		</div>
		<%--		</div>--%>
		<%--		<div class="startpage" id="startpage">--%>
		<%--			<div class="wrap" id="wrap">--%>
		<%--				<div id="main">--%>
		<%--					<div id="header">--%>
		<%--					</div>--%>
		<%--				</div>--%>
		<%--			</div>--%>
		<%--		</div>--%>

		</div>
	</body>
</html>
